// 将字符串转换为base64编码
export stringToBase64(str) {
  return btoa(unescape(encodeURIComponent(str)));
}

// 将base64编码转换为字符串
export base64ToString(base64) {
  return decodeURIComponent(escape(atob(base64)));
}
